package com.dp.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dp.common.annotation.Excel;
import com.dp.common.core.domain.BaseEntity;

/**
 * 报警规则对象 sys_alarm_rule
 * 
 * @author ruoyi
 * @date 2025-02-10
 */
public class SysAlarmRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规则ID */
    private Long ruleId;

    /** 大棚ID */
    @Excel(name = "大棚ID")
    private Long greenhouseId;

    /** 最低温度阈值 */
    @Excel(name = "最低温度阈值")
    private BigDecimal minTemperature;

    /** 最高温度阈值 */
    @Excel(name = "最高温度阈值")
    private BigDecimal maxTemperature;

    /** 通知方式（短信、邮件等） */
    @Excel(name = "通知方式", readConverterExp = "短=信、邮件等")
    private String notificationMethod;

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setGreenhouseId(Long greenhouseId) 
    {
        this.greenhouseId = greenhouseId;
    }

    public Long getGreenhouseId() 
    {
        return greenhouseId;
    }
    public void setMinTemperature(BigDecimal minTemperature) 
    {
        this.minTemperature = minTemperature;
    }

    public BigDecimal getMinTemperature() 
    {
        return minTemperature;
    }
    public void setMaxTemperature(BigDecimal maxTemperature) 
    {
        this.maxTemperature = maxTemperature;
    }

    public BigDecimal getMaxTemperature() 
    {
        return maxTemperature;
    }
    public void setNotificationMethod(String notificationMethod) 
    {
        this.notificationMethod = notificationMethod;
    }

    public String getNotificationMethod() 
    {
        return notificationMethod;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleId", getRuleId())
            .append("greenhouseId", getGreenhouseId())
            .append("minTemperature", getMinTemperature())
            .append("maxTemperature", getMaxTemperature())
            .append("notificationMethod", getNotificationMethod())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
